- texture
IHipTextureRegion texture;
Undocumented in source.
- color
HipColor color;
Undocumented in source.
- x
float x;
- y
float y;
Undocumented in source.
- scrollX
float scrollX;
- scrollY
float scrollY;
Undocumented in source.
- rotation
float rotation;
Undocumented in source.
- tilingX
float tilingX;
- tilingY
float tilingY;
Undocumented in source.
- scaleX
float scaleX;
- scaleY
float scaleY;
Undocumented in source.
- u1
float u1;
- v1
float v1;
- u2
float u2;
- v2
float v2;
Undocumented in source.
- width
uint width;
Width of the texture region, (u2-u1) * texture.width
- height
uint height;
Height of the texture region, (v2-v1) * texture.height
- isDirty
bool isDirty;
Undocumented in source.
- vertices
HipSpriteVertex[] vertices;
Undocumented in source.
- setTexture
void setTexture(IHipTexture texture)
Undocumented in source. Be warned that the author may not have intended to support it.
- setTexture
void setTexture(IHipAssetLoadTask task)
Undocumented in source. Be warned that the author may not have intended to support it.
- getTexture
IHipTexture getTexture()
Undocumented in source. Be warned that the author may not have intended to support it.
- setRegion
void setRegion(float u1, float v1, float u2, float v2)
Undocumented in source. Be warned that the author may not have intended to support it.
- setRegion
void setRegion(IHipTextureRegion region)
Undocumented in source. Be warned that the author may not have intended to support it.
- setRegion
void setRegion(TextureCoordinatesQuad c)
Undocumented in source. Be warned that the author may not have intended to support it.
- setPosition
void setPosition(float x, float y)
Undocumented in source. Be warned that the author may not have intended to support it.
- getVertices
HipSpriteVertex[] getVertices()
Undocumented in source. Be warned that the author may not have intended to support it.
- setColor
void setColor(HipColor color)
Undocumented in source. Be warned that the author may not have intended to support it.
- setScale
void setScale(float scaleX, float scaleY)
Undocumented in source. Be warned that the author may not have intended to support it.
- setRotation
void setRotation(float rotation)
Undocumented in source. Be warned that the author may not have intended to support it.
- setAngle
void setAngle(float angle)
Same thing as setRotation, but receives in Degrees
- getWidth
int getWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
- getHeight
int getHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
- getTextureWidth
int getTextureWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
- getTextureHeight
int getTextureHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
- setScroll
void setScroll(float x, float y)
This function is most useful for single images. For instance backgrounds, probably, if you have a
texture atlas or a spritesheet, this function is not useful
- setFlippedX
void setFlippedX(bool flip)
Undocumented in source. Be warned that the author may not have intended to support it.
- setFlippedY
void setFlippedY(bool flip)
Undocumented in source. Be warned that the author may not have intended to support it.
- isFlippedX
bool isFlippedX()
Undocumented in source. Be warned that the author may not have intended to support it.
- isFlippedY
bool isFlippedY()
Undocumented in source. Be warned that the author may not have intended to support it.
- setTiling
void setTiling(float x, float y)
Sets the tiling factor for this sprite. Default is 1.
- draw
void draw()
Undocumented in source. Be warned that the author may not have intended to support it.